package com.xja.service;

import com.xja.pojo.Article;
import com.xja.pojo.ArticleCollInfo;
import com.xja.pojo.ArticleComment;
import com.xja.pojo.ArticleCheckMessage;

import java.util.List;


public interface ArticleService {
    void addArticle(Article article);

    int addCommentKid(ArticleComment articleComment);

    int addComment(ArticleComment articleComment);

    List<Article> getInitCheckArticle(Integer adminId,Integer page);


    List<Article> getCheckArticle(Integer page);

    Article getArticleByAid(Integer aid);

    void addArticleCheckMessage(ArticleCheckMessage message);

    List<ArticleCheckMessage> getCheckMessage(Integer aid);


    void updateArticlePermit(Integer aid, String astatus);

    List<Article> selectArticleByUid(Integer uid, Integer count,Integer astatus);

    Integer selectArticleCount(Integer uid);

    Integer selectCollArtNum(Integer uid);

    ArticleCheckMessage getArticleMessage(Integer aid);

    void updateArticle(Article article);

    int coll(ArticleCollInfo articleCollInfo);

    ArticleCollInfo getCollInfo(Integer uid, Integer aid);

    void unColl(ArticleCollInfo articleCollInfo);


}
